GtkQuery: Drop unused mimetype functions
authorMatthias Clasen <mclasen@redhat.com>
Sat, 16 May 2015 04:47:57 +0000 (00:47 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 16 May 2015 04:48:36 +0000 (00:48 -0400)
These are not used, so drop them.

gtk/gtkquery.c
gtk/gtkquery.h

index bed173ed432cd3c1e5e76bf5fcdb7913f9c9b0bd..a69b27860649d73dc9611180503422e505ebd477 100644 (file)
@@ -101,47 +101,6 @@ gtk_query_set_location (GtkQuery    *query,
   query->priv->location_uri = g_strdup (uri);
 }
 
-GList *
-gtk_query_get_mime_types (GtkQuery *query)
-{
-  GList *list, *l;
-  gchar *mime_type;
-
-  list = NULL;
-  for (l = query->priv->mime_types; l; l = l->next)
-    {
-      mime_type = (gchar*)l->data;
-      list = g_list_prepend (list, g_strdup (mime_type));
-    }
-
-  return list;
-}
-
-void
-gtk_query_set_mime_types (GtkQuery *query,
-                          GList    *mime_types)
-{
-  GList *l;
-  gchar *mime_type;
-
-  g_list_free_full (query->priv->mime_types, g_free);
-  query->priv->mime_types = NULL;
-
-  for (l = mime_types; l; l = l->next)
-    {
-      mime_type = (gchar*)l->data;
-      query->priv->mime_types = g_list_prepend (query->priv->mime_types, g_strdup (mime_type));
-    }
-}
-
-void
-gtk_query_add_mime_type (GtkQuery    *query,
-                         const gchar *mime_type)
-{
-  query->priv->mime_types = g_list_prepend (query->priv->mime_types,
-                                            g_strdup (mime_type));
-}
-
 static gchar *
 prepare_string_for_compare (const gchar *string)
 {
index 8f1b1d69deb63c7ec5321efb3af49f59ee59964f..dd3801228a0eda4f18bdd3a113cbd13da033196f 100644 (file)
@@ -61,12 +61,6 @@ gchar*    gtk_query_get_location   (GtkQuery    *query);
 void      gtk_query_set_location   (GtkQuery    *query,
                                     const gchar *uri);
 
-GList*    gtk_query_get_mime_types (GtkQuery    *query);
-void      gtk_query_set_mime_types (GtkQuery    *query,
-                                    GList       *mime_types);
-void      gtk_query_add_mime_type  (GtkQuery    *query,
-                                    const gchar *mime_type);
-
 gboolean  gtk_query_matches_string (GtkQuery    *query,
                                     const gchar *string);